<?php defined('IN_PHPCMS') or exit('No permission resources.'); ?><?php include template("content","header"); ?>
<?php include template("content","header_public"); ?>
<?php $cityid = CITYID;?>
<script language="javascript" src="<?php echo JS_PATH;?>changimages.js"></script>
<!-- 内容begin-->
<div id="main_bg">
  <!-- 板块1begin-->
  <div id="main01">
    <div id="m01l">
         <div id="m01l_slide"><div id=imgADPlayer></div>
      <script language="javascript" src="<?php echo APP_PATH;?>caches/poster_js/15.js"></script>
      <script>
      PImgPlayer.init( "imgADPlayer", 290, 238 ); 
      </script>
	</div>
      <div class="m01l_b">
        <div class="m01l_b_title">
          <h1><a href="#">互动家装</a></h1>
          在这里你可以发挥自己的设计天赋</div>
        <div class="content"><a href="./xnjz_c.html"><img src="<?php echo CSS_PATH;?>images/jiancaixuangou_08.gif" /></a><a href="./xnjz_c.html"><img src="<?php echo CSS_PATH;?>images/jiancaixuangou_08.gif" /></a></div>
      </div>
    </div>
    <div id="m01m">
      <div class="m01m_tittle"><img src="<?php echo CSS_PATH;?>images/zindex_44.gif" />
        <h1><a href="#">今日关注</a></h1>
        <a href="#">[卖场]</a><a href="index.php?m=content&c=user&a=company">[装饰]</a><a href="index.php?m=content&c=index&a=lists&catid=<?php echo PRODUCTCATID;?>">[建材]</a></div>
      <div class="m01m_key">
        <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=1cd186e7515bf473aef45c5deec7e55d&action=position&posid=1&order=id+DESC&num=1&return=info\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'position')) {$info = $content_tag->position(array('posid'=>'1','order'=>'id DESC','limit'=>'1',));}?>
             <?php $n=1;if(is_array($info)) foreach($info AS $v) { ?>
        <h1><a href="<?php echo $v['url'];?>"><?php echo $v['title'];?></a></h1>
        <p><?php echo str_cut($v['description'],100);?><a href="<?php echo $v['url'];?>">[详细内容]</a></p>
           <?php $n++;}unset($n); ?>
           
            <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
      </div>
      <!-- 
      <div class="m01m_first">
      
        <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=7db3a2a744b5a51fd07635dd6a757324&action=lists&catid=24&order=id+DESC&thumb=1&num=1&return=info\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'lists')) {$info = $content_tag->lists(array('catid'=>'24','order'=>'id DESC','thumb'=>'1','limit'=>'1',));}?>
             <?php $n=1;if(is_array($info)) foreach($info AS $v) { ?>
             <div class="m01m_ad"><a href="<?php echo $v['url'];?>"><img src="<?php echo thumb($v[thumb],98,48);?>" /></a></div>
        <div class="m01m_ad_content"><a href="<?php echo $v['url'];?>"><?php echo str_cut($v[title],20);?></a></div>
                <?php $n++;}unset($n); ?>
           
            <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
      
       
      </div> -->
      <ul>
       
         <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=662f5cb4c4d8593ba1e00a84d41ed2cc&action=position&posid=1&order=listorder+DESC&num=5\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'position')) {$data = $content_tag->position(array('posid'=>'1','order'=>'listorder DESC','limit'=>'5',));}?>
            	
                    <?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>
                     <li><a href="<?php echo $r['url'];?>" title="<?php echo str_cut($r['title'],30);?>"><?php echo $r['title'];?></a></li>
         
                    <?php $n++;}unset($n); ?>
                    
            <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
      </ul>
    </div>
    <div id="m01r">
      <div class="left"><img src="<?php echo CSS_PATH;?>images/zindex_51.gif" /></div>
      <div class="m01r_tool">
        <div class="m01r_tool01">
          <a href="<?php echo APP_PATH;?>index.php?m=member&c=index&a=register&siteid=<?php echo $siteid;?>" class="inputbuttonr"/>免费注册</a>
          <a href="<?php echo APP_PATH;?>index.php?m=member&c=index&a=login&forward=<?php echo urlencode(HTTP_REFERER);?>&siteid=<?php echo $siteid;?>" class="inputbuttonl"/>快速登录</a>
        </div>
        <ul>
          <li><img src="<?php echo CSS_PATH;?>images/index_1_9.gif" /><a href="#">装修材料及人员计算器</a></li>
          <li><img src="<?php echo CSS_PATH;?>images/index_1_91.gif" /><a href="#">装修一站通</a></li>
          <li><img src="<?php echo CSS_PATH;?>images/index_1_92.gif" /><a href="#">虚拟样板间</a></li>
          <li><img src="<?php echo CSS_PATH;?>images/index_1_93.gif" /><a href="#">装修合同</a></li>
        </ul>
      </div>
      <div class="right"><img src="<?php echo CSS_PATH;?>images/zindex_54.gif" /></div>
      <div class="m01r_b">
      <form method="post" action="<?php echo APP_PATH;?>index.php?m=member&c=content&a=publish" id="myform" name="myform">
	<input type="hidden" value="<?php echo ZHAOBIAO;?>" name="info[catid]">
        <div class="m01r_tittle">
          <h1><a href="#">我要装修</a></h1>
          <span style="float:left; margin:10px auto 50px 3px; color:#f20c00;">|</span><a href="index.php?m=content&c=user&a=buy_product">重庆建材求购</a><tt>[带*为必填]</tt></div>
       <ul>
          <li>
            <label>*所在城市：</label>
            <span id="citydiv"></span> &nbsp;区域：<span id="area">  <select><option>请选择</option></select></span>
           </li>
          <li>
            <label>*联系电话：</label>
            <input name="info[phone]" id="phone" style="width:54px; height:14px;" type="text" /> &nbsp;面积：<input id="size" name="info[size]" style="width:54px; height:14px;" type="text" /> ㎡
            </li>
          <li>
            <label>装修空间：</label>
            <span id="decoration_space"></span>
            &nbsp;预算：<input name="info[budget]" id="budget" style="width:54px; height:14px;" type="text" /> 万</li>
           <li>
            <label>*你的户型：</label>
            <span id="house_type">  <select><option>请选择</option></select></span>
          </li>
          <li>
            <label>风格分类：</label>
            <span id="decoration_style"></span>
          </li>
         
          <li>
            <label>*你所在的小区：</label>
            <input name="info[title]" id="title" style="width:84px; height:14px;" type="text" />
            <tt>如隆鑫花漾湖</tt></li>
          <li>
            <label>*联系人：</label>
            <input name="info[name]" id="name" style="width:84px; height:14px;" type="text" />
            
            
          </li>
          <li>
            <label>QQ\其他：</label>
            <input name="info[qq]" id="qq" style="width:84px; height:14px;" type="text" />
            <tt>方便联系(选填)</tt></li>
          <li>
            <label>*你的装修要求：</label>
            <input id="description" name="info[description]" style="width:144px; height:14px;" type="text" />
          </li>
          <li>
            <label>*验证码：</label>
            <input name="" style="width:42px; height:14px;" type="text" /> <?php echo form::checkcode('code_img', '4', '14', 84, 24);?>
            <input name="dosubmit" onclick="return sendzhaobiao(<?php echo $sendsure;?>);" type="submit" class="inputbutton2" value="提交" />
          </li>
        </ul>

      </div>
      </form>
    </div>
  </div>
  <!-- 板块1end-->
  <!-- 板块2begin-->
  <div id="main02">
    <div class="m02l">
      <div class="m02l_title">
        <h1><a href="<?php echo APP_PATH;?>index.php?m=content&c=index&a=pic">重庆优秀装饰案例</a></h1>
        <tt>
		<?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=7283bc86d9d59aa3e02c7a1839f7b099&action=get_decoration_style&order=listorder+DESC&num=6&return=data\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'get_decoration_style')) {$data = $content_tag->get_decoration_style(array('order'=>'listorder DESC','limit'=>'6',));}?>
			<?php $n=1;if(is_array($data)) foreach($data AS $v) { ?>  
				  <a href="<?php echo APP_PATH;?>index.php?m=content&c=index&a=lists&catid=<?php echo COMPANYCASE;?>&styleid=<?php echo $v['linkageid'];?>" target="_blank"><?php echo $v['name'];?></a>|      
			<?php $n++;}unset($n); ?>
			<a href="<?php echo APP_PATH;?>index.php?m=content&c=index&a=pic">更多</a>
		<?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
		</tt></div>
      <ul>
       <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=d45ceedff1886db033cca463d57c12b4&action=lists&catid=24&num=25&order=id+DESC&page=%24page\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'lists')) {$pagesize = 25;$page = intval($page) ? intval($page) : 1;if($page<=0){$page=1;}$offset = ($page - 1) * $pagesize;$content_total = $content_tag->count(array('catid'=>'24','order'=>'id DESC','limit'=>$offset.",".$pagesize,'action'=>'lists',));$pages = pages($content_total, $page, $pagesize, '');$data = $content_tag->lists(array('catid'=>'24','order'=>'id DESC','limit'=>$offset.",".$pagesize,'action'=>'lists',));}?>
	       <?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>
	        <li>
	          <div class="img_bg"><a href="<?php echo $r['url'];?>"><img src="<?php echo thumb($r[thumb],150,112);?>" width="120" height="90" alt="<?php echo $r['title'];?>"/></a></div>
	          <div class="caption"><a href="<?php echo $r['url'];?>"><?php echo $r['title'];?></a></div>
	        <!--   <div class="caption01"><a href="./pic_cc.html">爱家丽宝爱家丽宝爱家丽宝</a></div> -->
	        </li>
	       <?php $n++;}unset($n); ?>			
		<?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>					
      </ul>
    </div>
    <div class="m02r">
      <div class="m02r_title">
        <h1><a href="<?php echo APP_PATH;?>index.php?m=content&c=index&a=lists&catid=<?php echo ZHUANGSHIZATAN;?>">重庆装饰杂谈</a></h1>
        <tt><a href="<?php echo APP_PATH;?>index.php?m=content&c=index&a=lists&catid=<?php echo ZHUANGSHIZATAN;?>">更多>></a></tt> </div>
      <div class="m02r_first">
        <div class="m02r_ad"><a href="./zixun_c.html"><img src="<?php echo CSS_PATH;?>images/zindex_811.gif" /></a></div>
        <div class="m02r_ad_content"><a href="./zixun_c.html">2010年家居流行趋势解 分
          析拆解学习如何运用建材、
          风格、家具、家饰
          [详情]</a></div>
      </div>
      <ul>
       <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=8d763b873752eadec6be1fa4cef7fc67&action=lists&catid=14&num=25&order=id+DESC&page=%24page\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'lists')) {$pagesize = 25;$page = intval($page) ? intval($page) : 1;if($page<=0){$page=1;}$offset = ($page - 1) * $pagesize;$content_total = $content_tag->count(array('catid'=>'14','order'=>'id DESC','limit'=>$offset.",".$pagesize,'action'=>'lists',));$pages = pages($content_total, $page, $pagesize, '');$data = $content_tag->lists(array('catid'=>'14','order'=>'id DESC','limit'=>$offset.",".$pagesize,'action'=>'lists',));}?>
	       <?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>
	        <li>
	          <a href="<?php echo $r['url'];?>"><?php echo $r['title'];?></a>
	        </li>
	       <?php $n++;}unset($n); ?>			
		<?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>	
       
      </ul>
    </div>
  </div>
  <!-- 板块2end-->
  <!-- 板块3begin-->
  <div id="main03">
    <div class="m03_tittle">
      <div class="left"><img src="<?php echo CSS_PATH;?>images/zindex_78.gif" /></div>
      <div class="menu menu22">
        <div class="left"><img src="<?php echo CSS_PATH;?>images/zindex_84.gif" /></div>
        <div class="menu01 menu11"><a href="index.php?m=content&c=user&a=company">装饰公司频道</a>|<a href="index.php?m=content&c=index&a=lists&catid=<?php echo ZHAOBIAO;?>">招标频道</a>|<a href="index.php?m=content&c=index&a=lists&catid=<?php echo PRODUCTCATID;?>">卖场频道</a>|<a href="./dazhe.html">折扣频道</a></div>
        <div class="right"><img src="<?php echo CSS_PATH;?>images/zindex_88.gif" /></div>
      </div>
      <div class="right"><img src="<?php echo CSS_PATH;?>images/zindex_82.gif" /></div>
    </div>
    <div class="m03l">
      <div class="m03l_l">
        <div class="m03l_l_title">
          <h1><a href="#">装饰动态</a></h1>
        </div>
        <div class="slide01"><a href="./zixun_c.html"><img src="<?php echo CSS_PATH;?>images/zindex_105.gif" /></a></div>
        <ul>
        <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=89598d1ea32269ef2f09dd3203b192b6&action=lists&catid=15&num=8&order=id+DESC&page=%24page\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'lists')) {$pagesize = 8;$page = intval($page) ? intval($page) : 1;if($page<=0){$page=1;}$offset = ($page - 1) * $pagesize;$content_total = $content_tag->count(array('catid'=>'15','order'=>'id DESC','limit'=>$offset.",".$pagesize,'action'=>'lists',));$pages = pages($content_total, $page, $pagesize, '');$data = $content_tag->lists(array('catid'=>'15','order'=>'id DESC','limit'=>$offset.",".$pagesize,'action'=>'lists',));}?>
			<?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>
			 <li><a href="<?php echo APP_PATH;?>index.php?m=content&c=business&a=notice_detail&uid=<?php echo get_userid_by_username($r[username]);?>&id=<?php echo $r['id'];?>"><?php echo $r['title'];?></a></li>
			<?php $n++;}unset($n); ?>
			<?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
        </ul>
      </div>
      <div class="m03l_r">
        <div class="m03l_r_title">
          <h1><a href="<?php echo APP_PATH;?>index.php?m=content&c=index&a=lists&catid=20">装饰招标</a></h1>
          <tt><a href="<?php echo APP_PATH;?>index.php?m=content&c=index&a=lists&catid=20">更多>></a></tt><tt><a href="<?php echo APP_PATH;?>index.php?m=content&c=user&a=publish_zhaobiao">[发布装修招标]</a></tt></div>
        <ul>
          <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=6387c1225a670a9b5e3c4b07ec03a199&action=lists&moreinfo=1&catid=20&num=8&order=id+DESC&return=info\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'lists')) {$info = $content_tag->lists(array('moreinfo'=>'1','catid'=>'20','order'=>'id DESC','limit'=>'8',));}?>
             <?php $n=1;if(is_array($info)) foreach($info AS $svz) { ?>
             	
          <dl>
            <dt class="dt_1"><a href="<?php echo $svz['url'];?>"><?php echo $svz['name'];?></a></dt>
            <dt class="dt_1"><a href="<?php echo $vz['url'];?>"><?php echo str_cut($svz['title'],28);?></a></dt>
            <dt class="dt_1"><a href="<?php echo $vz['url'];?>"><?php echo $svz['size'];?>㎡</a></dt>
            <dt class="dt_1"><a href="<?php echo $vz['url'];?>"><?php echo $svz['budget'];?>万</a></dt>
            <dt class="dt_2"><a href="<?php echo $vz['url'];?>"><?php echo str_cut($svz['description'],48);?></a></dt>
          </dl>
          <?php $n++;}unset($n); ?>
              <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>  
         
        </ul>
        <div class="ad02"><a href="#"><img src="<?php echo CSS_PATH;?>images/zindex_112.gif" /></a></div>
      </div>
    </div>
    <div class="m03r">
      <div class="m03r_tittle">
        <h1><a href="<?php echo APP_PATH;?>index.php?m=content&c=index&a=lists&catid=26">品位潮流</a></h1>
        <tt><a href="<?php echo APP_PATH;?>index.php?m=content&c=index&a=lists&catid=26">更多>></a></tt> </div>
        
       
       
         <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=cefdc1b5c77c474ba6f9b82be6cc3eab&action=hits&catid=26&num=7&order=views+DESC&cache=3600\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$tag_cache_name = md5(implode('&',array('catid'=>'26','order'=>'views DESC',)).'cefdc1b5c77c474ba6f9b82be6cc3eab');if(!$data = tpl_cache($tag_cache_name,3600)){$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'hits')) {$data = $content_tag->hits(array('catid'=>'26','order'=>'views DESC','limit'=>'7',));}if(!empty($data)){setcache($tag_cache_name, $data, 'tpl_data');}}?>
		<?php if($data) { ?>
       	<?php $n=1; if(is_array($data)) foreach($data AS $ks => $sv) { ?>
	       	<?php if($n==1) { ?>  
      <div class="m03r01_l"><a href="<?php echo $sv['url'];?>"><img src="<?php echo thumb($r[thumb],96,96);?>" /></a><a href="./zixun_c.html">白色简约时尚白色简约时尚白色简约时尚白色简约时尚白色简约时尚</a></div>
      <ul>
      <?php } else { ?>
        <li><a href="<?php echo $sv['url'];?>"><?php echo $sv['title'];?></a></li>
        <?php } ?>
        
       	<?php $n++;}unset($n); ?>
       	<?php }else{ ?>
       	
       	<?php } ?>
      	<?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
      </ul>
      
      <div class="m03r02_menu">
        <h1 class="on"><a href="#">明星家居</a></h1>
        
      </div>
      <div class="ul_01">
        <div class="li_01"><span class="t"><a href="./pic_cc.html"><img src="<?php echo CSS_PATH;?>images/zindex_811.gif" /></a></span><span class="t01"><a href="./pic_cc.html">刘德华家居</a></span></div>
        <div class="li_01"><span class="t"><a href="./pic_cc.html"><img src="<?php echo CSS_PATH;?>images/zindex_811.gif" /></a></span><span class="t01"><a href="./pic_cc.html">刘德华家居刘德</a></span></div>
      </div>
    </div>
    <div class="m03b">
      <div class="m03b_title">
        <h1><a href="index.php?m=content&c=user&a=company">装饰公司</a></h1>
        <tt><a href="index.php?m=content&c=user&a=company">更多>></a></tt> </div>
      <ul>
		<?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=de8fb1810a0898fb87324ecff2410b02&action=list_company_all&cityid=%24cityid&num=6&order=id+DESC&page=%24page\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'list_company_all')) {$pagesize = 6;$page = intval($page) ? intval($page) : 1;if($page<=0){$page=1;}$offset = ($page - 1) * $pagesize;$content_total = $content_tag->count(array('cityid'=>$cityid,'order'=>'id DESC','limit'=>$offset.",".$pagesize,'action'=>'list_company_all',));$pages = pages($content_total, $page, $pagesize, '');$data = $content_tag->list_company_all(array('cityid'=>$cityid,'order'=>'id DESC','limit'=>$offset.",".$pagesize,'action'=>'list_company_all',));}?>
			<?php $n=1;if(is_array($data['data'])) foreach($data['data'] AS $r) { ?>
				<li><a target="_blank" href="<?php echo APP_PATH;?>index.php?m=content&c=company&a=company_index&userid=<?php echo $r['userid'];?>"><img src="<?php echo thumb($r[thumb],150,112);?>" /></a><span><a target="_blank" href="<?php echo APP_PATH;?>index.php?m=content&c=company&a=company_index&userid=<?php echo $r['userid'];?>"><?php echo $r['companyname'];?></a></span></li>
			<?php $n++;}unset($n); ?>
		<?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
      </ul>
    </div>
  </div>
  <!-- 板块3end-->
  <!-- 板块4begin-->
  <div id="main04">
    <div class="m04_tittle">
      <div class="left"><img src="<?php echo CSS_PATH;?>images/zindex_115.gif" /></div>
      <div class="menu menu22">
        <div class="left"><img src="<?php echo CSS_PATH;?>images/zindex_84.gif" /></div>
        <div class="menu01 menu11"><a href="index.php?m=content&c=index&a=lists&catid=<?php echo PRODUCTCATID;?>">主材商城首页</a>|<a href="index.php?m=content&c=user&a=buy_product">我要求购</a>|<a href="index.php?m=content&c=index&a=lists&catid=<?php echo DISCOUNTNOTICE;?>">打折公告</a>|<a href="#">我要发布</a></div>
        <div class="right"><img src="<?php echo CSS_PATH;?>images/zindex_88.gif" /></div>
      </div>
      <div class="right"><img src="<?php echo CSS_PATH;?>images/zindex_82.gif" /></div>
    </div>
    
    <div class="m04l">
       <div class="m04l_tittle"><font class=" p14 color04 strong">热点推荐</font></div>
      <div class="m04l_content">
      <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=80211d2fd4d70ac2a1a8f73e4409da82&action=lists&catid=15&order=listorder+ASC&num=5\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'lists')) {$data = $content_tag->lists(array('catid'=>'15','order'=>'listorder ASC','limit'=>'5',));}?>
		<?php if($data) { ?>
       	<?php $n=1; if(is_array($data)) foreach($data AS $ks => $sv) { ?>
	       	<?php if($n==1) { ?>  
        <div class="f"><a href="<?php echo APP_PATH;?>index.php?m=content&c=business&a=notice_detail&uid=<?php echo get_userid_by_username($sv[username]);?>&id=<?php echo $sv['id'];?>"><img src="<?php echo thumb($r[thumb],118,88);?>" /></a>
          <p><a href="<?php echo APP_PATH;?>index.php?m=content&c=business&a=notice_detail&uid=<?php echo get_userid_by_username($sv[username]);?>&id=<?php echo $sv['id'];?>" class="color01 strong"><?php echo str_cut($sv[title], 36);?></a></p>
        </div>
        <ul>
        <?php } else { ?>
          <li><em><?php echo $n-1;?> 
          </em><a href="<?php echo APP_PATH;?>index.php?m=content&c=business&a=notice_detail&uid=<?php echo get_userid_by_username($sv[username]);?>&id=<?php echo $sv['id'];?>"><?php echo str_cut($sv[title], 36);?></a></li>
         <?php } ?>
        
       	<?php $n++;}unset($n); ?>
       	<?php }else{ ?>
       	
       	<?php } ?>
      	<?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
        </ul>
      </div>
    </div>
    <div class="m04r">
      <div class="m04r_tittle"><a href="index.php?m=content&c=index&a=lists&catid=18" class="p14 strong color04">推荐产品</a><tt><a href="index.php?m=content&c=index&a=lists&catid=18" class="color04">更多>></a></tt></div>
      <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=84e947aa2066e9612d9435ca9424b1ff&action=get_content&catid=18&num=25&order=id+DESC&page=%24page\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'get_content')) {$pagesize = 25;$page = intval($page) ? intval($page) : 1;if($page<=0){$page=1;}$offset = ($page - 1) * $pagesize;$content_total = $content_tag->count(array('catid'=>'18','order'=>'id DESC','limit'=>$offset.",".$pagesize,'action'=>'get_content',));$pages = pages($content_total, $page, $pagesize, '');$data = $content_tag->get_content(array('catid'=>'18','order'=>'id DESC','limit'=>$offset.",".$pagesize,'action'=>'get_content',));}?>
	  <ul>
		<?php $n=1;if(is_array($data['data'])) foreach($data['data'] AS $r) { ?>	
        <li>
		<a href="<?php echo $r['url'];?>"><img src="<?php echo thumb($r[thumb],115,100);?>" width="115" height="100" alt="<?php echo $r['title'];?>" /></a> 
		<span><a href="<?php echo $r['url'];?>" class="color07"><?php echo $r['title'];?></a></span> 
		<span><a href="<?php echo $r['url'];?>" class="color06"><?php echo $r['price'];?>元</a></span> 
		</li>
		<?php $n++;}unset($n); ?>
      </ul>
	  <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
    </div>
    <div class="m04b">
      <div class="m04b_title">
        <h1><a href="index.php?m=content&c=index&a=lists&catid=<?php echo PRODUCTCATID;?>" target="_blank">品牌推荐</a></h1>
        <dl>
          <dt><a href="index.php?m=content&c=index&a=lists&catid=<?php echo PRODUCTCATID;?>" class="color08">首页</a></dt>
		  <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"member\" data=\"op=member&tag_md5=8b4d661af7a8cb83c202188e52493b85&action=get_product_category&num=9&order=id+DESC&page=%24page\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$member_tag = pc_base::load_app_class("member_tag", "member");if (method_exists($member_tag, 'get_product_category')) {$pagesize = 9;$page = intval($page) ? intval($page) : 1;if($page<=0){$page=1;}$offset = ($page - 1) * $pagesize;$member_total = $member_tag->count(array('order'=>'id DESC','limit'=>$offset.",".$pagesize,'action'=>'get_product_category',));$pages = pages($member_total, $page, $pagesize, '');$data = $member_tag->get_product_category(array('order'=>'id DESC','limit'=>$offset.",".$pagesize,'action'=>'get_product_category',));}?>
		
				<?php $n=1;if(is_array($data)) foreach($data AS $r) { ?>
				<dt>
				<a class="color08" href="index.php?m=content&c=index&a=lists&catid=24&s=<?php echo $r['linkageid'];?>"><?php echo $r['name'];?></a>
				</dt>
				<?php $n++;}unset($n); ?>
			
		<?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
          
          
        </dl>
      </div>
      <ul>
	  <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=b762cac630f44e99d7813ae10fd78fc6&action=get_content&catid=18&num=25&order=id+DESC&page=%24page\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'get_content')) {$pagesize = 25;$page = intval($page) ? intval($page) : 1;if($page<=0){$page=1;}$offset = ($page - 1) * $pagesize;$content_total = $content_tag->count(array('catid'=>'18','order'=>'id DESC','limit'=>$offset.",".$pagesize,'action'=>'get_content',));$pages = pages($content_total, $page, $pagesize, '');$data = $content_tag->get_content(array('catid'=>'18','order'=>'id DESC','limit'=>$offset.",".$pagesize,'action'=>'get_content',));}?>
		
			<?php $n=1;if(is_array($data['data'])) foreach($data['data'] AS $r) { ?>
        <li><a href="#"><img src="<?php echo thumb($r[thumb],150,112);?>" /></a><span><a href="<?php echo $r['url'];?>"><?php echo $r['title'];?></a></span></li>
       <?php $n++;}unset($n); ?>
	   <?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
      </ul>
    </div>
  </div>
  <!-- 板块4end-->
  <!-- 板块5begin-->
  <div id="main05">
    <div class="m05_tittle">
      <div class="left"><img src="<?php echo CSS_PATH;?>images/zindex_135.gif" /></div>
      <div class="menu">
        <div class="left"><img src="<?php echo CSS_PATH;?>images/zindex_84.gif" /></div>
        <div class="menu01"><a href="./zsschool.html">装饰学堂首页</a>|<a href="./zsschool_shejizhinan.html">设计指南</a>|<a href="./zsschool_jzwr.html">家装污染</a>|<a href="./zsschool_liucheng.html">装修流程</a>|<a href="./zsschool_wq.html">维权</a>|<a href="./zsschool_jzjl.html">监理</a></div>
        <div class="right"><img src="<?php echo CSS_PATH;?>images/zindex_88.gif" /></div>
      </div>
      <div class="right"><img src="<?php echo CSS_PATH;?>images/zindex_82.gif" /></div>
    </div>
    <div class="m051">
      <div class="m051_tittle">
        <h1><a href="<?php echo APP_PATH;?>index.php?m=content&c=index&a=lists&catid=13" class="p14 strong color04">装饰攻略</a></h1>
        <tt><a href="<?php echo APP_PATH;?>index.php?m=content&c=index&a=lists&catid=13" class="p12 color04">更多>></a></tt></div>
     <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=ea8740ebdf648aa8c72697c865e66ab7&action=lists&catid=13&order=listorder+ASC&num=5\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'lists')) {$data = $content_tag->lists(array('catid'=>'13','order'=>'listorder ASC','limit'=>'5',));}?>
		<?php if($data) { ?>
       	<?php $n=1; if(is_array($data)) foreach($data AS $ks => $sv) { ?>
	       	<?php if($n==1) { ?>  	 
      <a href="<?php echo $sv['url'];?>">
      <img src="<?php echo thumb($sv[thumb],96,67);?>" /></a>
      <p><a href="<?php echo $sv['url'];?>" class="strong color04"><?php echo str_cut($sv[title], 36);?></a></p>
      <ul>
     
		<ul>
	        <?php } else { ?>
	        	<li><a href="<?php echo $sv['url'];?>" title="<?php echo $sv['title'];?>"><?php echo str_cut($sv[title], 36);?></a></li>
	        <?php } ?>
        
       	<?php $n++;}unset($n); ?>
       	<?php }else{ ?>
       	
       	<?php } ?>
      	<?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
      </ul>
    </div>
    <div class="m052">
      <div class="m052_tittle">
        <h1><a href="<?php echo APP_PATH;?>index.php?m=content&c=index&a=choose_building_material" class="p14 strong color04">选材指南</a></h1>
        <tt><a href="<?php echo APP_PATH;?>index.php?m=content&c=index&a=choose_building_material" class="p12 color04">更多>></a></tt></div>
      <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=1ea23869b01b6e30c5c3e440b2d7700c&action=lists&catid=25&order=listorder+ASC&num=5\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'lists')) {$data = $content_tag->lists(array('catid'=>'25','order'=>'listorder ASC','limit'=>'5',));}?>
		<?php if($data) { ?>
       	<?php $n=1; if(is_array($data)) foreach($data AS $ks => $sv) { ?>
	       	<?php if($n==1) { ?>  	 
      <a href="<?php echo $sv['url'];?>">
      <img src="<?php echo thumb($sv[thumb],96,67);?>" /></a>
      <p><a href="<?php echo $sv['url'];?>" class="strong color04"><?php echo str_cut($sv[title], 36);?></a></p>
      <ul>
     
		<ul>
	        <?php } else { ?>
	        	<li><a href="<?php echo $sv['url'];?>" title="<?php echo $sv['title'];?>"><?php echo str_cut($sv[title], 36);?></a></li>
	        <?php } ?>
        
       	<?php $n++;}unset($n); ?>
       	<?php }else{ ?>
       	
       	<?php } ?>
      	<?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
      </ul>
    </div>
    
    <div class="m053">
      <div class="m053_tittle">
        <h1><a href="<?php echo APP_PATH;?>index.php?m=content&c=index&a=lists&catid=11" class="p14 strong color04">风水环保</a></h1>
        <tt><a href="<?php echo APP_PATH;?>index.php?m=content&c=index&a=lists&catid=11" class="p12 color04">更多>></a></tt></div>
    	<?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=2e6f5427ab0b50c8fd0f4d76a78dca86&action=lists&catid=11&order=listorder+ASC&num=5\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'lists')) {$data = $content_tag->lists(array('catid'=>'11','order'=>'listorder ASC','limit'=>'5',));}?>
		<?php if($data) { ?>
       	<?php $n=1; if(is_array($data)) foreach($data AS $ks => $sv) { ?>
	       	<?php if($n==1) { ?>  	 
      <a href="<?php echo $sv['url'];?>">
      <img src="<?php echo thumb($sv[thumb],96,67);?>" /></a>
      <p><a href="<?php echo $sv['url'];?>" class="strong color04"><?php echo str_cut($sv[title], 36);?></a></p>
      <ul>
     
		<ul>
	        <?php } else { ?>
	        	<li><a href="<?php echo $sv['url'];?>" title="<?php echo $sv['title'];?>"><?php echo str_cut($sv[title], 36);?></a></li>
	        <?php } ?>
        
       	<?php $n++;}unset($n); ?>
       	<?php }else{ ?>
       	<div class="zsschool0801"><div class="zsschool0801_title"><a href="<?php echo APP_PATH;?>index.php?m=content&c=index&a=lists&catid=13">攻略</a></div>
       	<?php } ?>
      	<?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
      </ul>
    </div>
    <div class="m053">
      <div class="m053_tittle">
        <h1><a href="<?php echo APP_PATH;?>index.php?m=content&c=index&a=lists&catid=32" class="p14 strong color04">装修常识</a></h1>
        <tt><a href="<?php echo APP_PATH;?>index.php?m=content&c=index&a=lists&catid=32" class="p12 color04">更多>></a></tt></div>
     <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=caed9650299f9706407798c66a595047&action=lists&catid=32&order=listorder+ASC&num=5\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'lists')) {$data = $content_tag->lists(array('catid'=>'32','order'=>'listorder ASC','limit'=>'5',));}?>
		<?php if($data) { ?>
       	<?php $n=1; if(is_array($data)) foreach($data AS $ks => $sv) { ?>
	       	<?php if($n==1) { ?>  	 
      <a href="<?php echo $sv['url'];?>">
      <img src="<?php echo thumb($sv[thumb],96,67);?>" /></a>
      <p><a href="<?php echo $sv['url'];?>" class="strong color04"><?php echo str_cut($sv[title], 36);?></a></p>
      <ul>
     
		<ul>
	        <?php } else { ?>
	        	<li><a href="<?php echo $sv['url'];?>" title="<?php echo $sv['title'];?>"><?php echo str_cut($sv[title], 36);?></a></li>
	        <?php } ?>
        
       	<?php $n++;}unset($n); ?>
       	<?php }else{ ?>
       	
       	<?php } ?>
      	<?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
      </ul>
    </div>
  </div>
  <!-- 板块5end-->
  <!--友情链接begin-->
<div class="m06">
	<div class="m06_title"><h1><a href="javascript:void(0)">友情链接</a></h1></div>
	<ul>
		<?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"link\" data=\"op=link&tag_md5=99c32cd273c57223c20074bf5196e97a&action=type_list&siteid=%24siteid&order=listorder+DESC&num=10&return=dat\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$link_tag = pc_base::load_app_class("link_tag", "link");if (method_exists($link_tag, 'type_list')) {$dat = $link_tag->type_list(array('siteid'=>$siteid,'order'=>'listorder DESC','limit'=>'10',));}?>
		<?php $n=1;if(is_array($dat)) foreach($dat AS $v) { ?>
              <?php if($type==0) { ?>
            <li>  <a href="<?php echo $v['url'];?>" target="_blank"><?php echo $v['name'];?></a>  </li>
              <?php } else { ?>
             <li> <a href="<?php echo $v['url'];?>" target="_blank"><img src="<?php echo $v['logo'];?>" width="88" height="31" style="border: 1px solid #FFBE7A;"></a> </li>
              <?php } ?>
		<?php $n++;}unset($n); ?>
	<?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
	</ul>
</div>
<!-- 友情链接end-->
</div>
<!-- 内容end-->
<script type="text/javascript">
<!--
	var charset = '<?php echo CHARSET;?>';
	
		function selectcity(val){
			var area = $('#area').val();
			
			$.post("index.php?m=content&c=index&a=getarea", {
				id:val
			}, function(data) {
				var d = '<select name="info[area]">'+data.str+'</select>';
				$('#city_letter').val(data.letter);
				$('#area').html("");
				$('#area').html(d);
				
			},"json"
			);
		}
		function select_decoration(val){
			var house_type = $('#house_type').val();
			$.post("index.php?m=content&c=index&a=select_decoration", {
				id:val
			}, function(data) {
				if(data.str=='null'){
					var d = '<select disabled="disabled"  name="info[house_type]"><option>请选择</option></select>';
				}
				else{
					var d = '<select   name="info[house_type]">'+data.str+'</select>';
				}
				$('#city_letter').val(data.letter);
				$('#house_type').html("");
				$('#house_type').html(d);
				
			},"json"
			);
		}
//-->
</script>
<script type="text/javascript"> 
<!--
//只能放到最下面

<?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"content\" data=\"op=content&tag_md5=c54eb18732c4b981cb5584c4fde560fb&action=getcity&return=city\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$content_tag = pc_base::load_app_class("content_tag", "content");if (method_exists($content_tag, 'getcity')) {$city = $content_tag->getcity(array('limit'=>'20',));}?>
	var c = '<select name="info[city]" id="cityid" onchange="selectcity(this.value);">';
	c +='<option value="0">请选择</option>';
	<?php $n=1; if(is_array($city)) foreach($city AS $k => $v) { ?>
		c += '<option value="<?php echo $v['linkageid'];?>"><?php echo $v['name'];?></option>';
	<?php $n++;}unset($n); ?>
	c += '</select>';
<?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
$('#citydiv').html(c);
<?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"member\" data=\"op=member&tag_md5=954574eaa6b75cd671a55b5cc02ee486&action=get_decoration_space&return=city\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$member_tag = pc_base::load_app_class("member_tag", "member");if (method_exists($member_tag, 'get_decoration_space')) {$city = $member_tag->get_decoration_space(array('limit'=>'20',));}?>
var c = '<select name="info[decoration_space]"  id="decoration_spaceid" onchange="select_decoration(this.value);">';
c +='<option value="0">请选择</option>';
<?php $n=1; if(is_array($city)) foreach($city AS $k => $v) { ?>
	c += '<option value="<?php echo $v['linkageid'];?>"><?php echo $v['name'];?></option>';
<?php $n++;}unset($n); ?>
c += '</select>';
<?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
$('#decoration_space').html(c);
<?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"member\" data=\"op=member&tag_md5=549edd8f9119b2cc0c1b823b9a80b348&action=get_decoration_style&return=city\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}$member_tag = pc_base::load_app_class("member_tag", "member");if (method_exists($member_tag, 'get_decoration_style')) {$city = $member_tag->get_decoration_style(array('limit'=>'20',));}?>
var c = '<select name="info[decoration_style]" id="decoration_styleid" >';
c +='<option value="0">请选择</option>';
<?php $n=1; if(is_array($city)) foreach($city AS $k => $v) { ?>
	c += '<option value="<?php echo $v['linkageid'];?>"><?php echo $v['name'];?></option>';
<?php $n++;}unset($n); ?>
c += '</select>';
<?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
$('#decoration_style').html(c);

//-->
</script>
<script type="text/javascript">
function sendzhaobiao(send){
	if(send==0){
		alert('只有业主会员才可以发布招标信息');
		return false;
	}else{
		var name=  $('#name').val();
		var phone = $('#phone').val();
		var decoration_spaceid = $('#decoration_spaceid').val();
		var decoration_styleid = $('#decoration_styleid').val();
		var cityid = $('#cityid').val();
		var budget = $('#budget').val();
		var size = $('#size').val();
		var title = $('#title').val();
		if(cityid==0){
			alert('请选择所在城市');
			return false;
		}
		if(phone==''){
			alert('请填写您的联系电话');$('#phone').focus();
			return false;
		}
		if(size==''){
			alert('请填写房屋面积');$('#size').focus();
			return false;
		}
		if(decoration_spaceid==0){
			alert('请选择装修空间');
			return false;
		}
		if(budget==''){
			alert('请填写装修预算');$('#budget').focus();
			return false;
		}
		if(name==''){
			alert('请填写您的姓名');$('#name').focus();
			return false;
		}
		
		if(decoration_styleid==0){
			alert('请选择风格分类');
			return false;
		}
		
		if(title==''){
			alert('请填写小区名字/地址');$('#title').focus();
			return false;
		}
	}
}
</script>
<?php include template("content","footer"); ?>
</body>
</html>
